package com.alibaba.cloud.exception;

import com.alibaba.cloud.enums.ResultCodeEnum;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public abstract class BaseException extends Exception {

	private ResultCodeEnum resultCodeEnum;

	private static final long serialVersionUID = -487642054820652699L;

	public BaseException() {
		super();
	}

	public BaseException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
		super(message, cause, enableSuppression, writableStackTrace);
	}

	public BaseException(String message, Throwable cause) {
		super(message, cause);
	}

	public BaseException(String message) {
		super(message);
	}

	public BaseException(Throwable cause) {
		super(cause);
	}

	public BaseException(ResultCodeEnum resultCodeEnum, String message) {
		super(message);
		this.resultCodeEnum = resultCodeEnum;

	}

	public BaseException(ResultCodeEnum resultCodeEnum, String message, Throwable cause) {
		super(message, cause);
		this.resultCodeEnum = resultCodeEnum;
	}

}
